#include "UdpServer.hpp"
#include "Comm.hpp"
#include <memory>
using namespace std;
void Usage(std::string proc)
{
    //std::cout<<"Usage:\n\t"<<proc<<"local_ip local_port\n"<<endl;
     std::cout<<"Usage:\n\t"<<proc<<"local_port\n"<<endl;
}
int main(int arge,char *argv[])
{
    string use=argv[0];
    if(arge!=2)
    {
        Usage(use);
        return Usage_Err;
    }
    //std::string ip=argv[1];
    uint16_t port=std::atoi(argv[1]);
    std::unique_ptr<Udpserver> usvr=std::make_unique<Udpserver>(port);
    usvr->Init();
    usvr->Start();
    return 0;
}